Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 4 - Advanced Printing Features / Advanced Printing Features Reference
Constants and Data Types for Advanced Printing Features


Pen Tables for Vector Devices

QuickDraw GX defines a tag object for a paper-type object's view device in the pen table tag enumeration:

enum { gxPenTableTag = 'pent' };
QuickDraw GX defines paper-type object units in the paper-type units enumeration:

enum {
   gxDeviceUnits  =  0,                         
   gxMmUnits      =  1,                            
   gxInchesUnits  =  2                          
};
Constant descriptions

gxDeviceUnits
If set, QuickDraw GX uses specific printer units.
gxMmUnits
If set, QuickDraw GX uses millimeters.
gxInchesUnits
If set, QuickDraw GX uses inches.
QuickDraw GX defines pen information in the pen not loaded enumeration:

enum { gxPenNotLoaded = -1};
QuickDraw GX stores pen table information in the pen table information structure:

struct gxPenTableEntry {
   Str31    penName;       
   gxColor  penColor;      
   fixed    penThickness;  
   short    penUnits;      
   short    penPosition;   
};
Field Description
penName
A string containing the name of the pen.
penColor
The color that is part of the color set.
penThickness
The size of the pen.
penUnits
The units in which the pen thickness is defined.
penPosition
The pen position in the carousel.
QuickDraw GX stores pen information in the pen table information structure:

struct gxPenTable {
   short             numPens;    
   gxPenTableEntry   pens[1];    
};
Field Description
numPens
The number of pen entries.
pens[1]
An array of pen entries.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help